#include "WalkPoint.h"

CWalkPoint * CreateWalkPoint( CCLayer* pLayer, CCPoint oPosition )
{
	CWalkPoint* pPoint = new CWalkPoint();
	pPoint->setPosition( oPosition );
	pLayer->addChild( pPoint );

	return pPoint;
}

CWalkPoint::CWalkPoint(void)
{
}


CWalkPoint::~CWalkPoint(void)
{
}

void CWalkPoint::draw(void)
{
#ifdef COCOS2D_DEBUG
	ccDrawColor4F(0, 255, 0, 255);
	ccDrawCircle( CCPointZero, 6, 360, 30, false);
	ccDrawCircle( CCPointZero, 2, 360, 30, false);

	//if (_nextWaypoint)
	//{
	//	ccDrawLine(_myPosition, _nextWaypoint->_myPosition);
	//}
#endif

	CCNode::draw();
}